<%@ page contentType="text/xml; charset=UTF-8" language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"
	prefix="c"%><%@ taglib prefix="sp"
	uri="http://www.springframework.org/tags"%><%@ taglib prefix="form"
	uri="http://www.springframework.org/tags/form"%>
	<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<% 

	Object title = request.getAttribute("title");
	Object dataTemp = request.getAttribute("dataTemp");
	String data = dataTemp == null?"":dataTemp.toString();
	
	Object title_enabled = request.getAttribute("title_enabled");
	Object title_font_size = request.getAttribute("title_font_size");
	Object legend_enabled = request.getAttribute("legend_enabled");
	Object legend_position = request.getAttribute("legend_position");
	Object legend_align = request.getAttribute("legend_align");
	Object animation = request.getAttribute("animation");
	Object xTitle = request.getAttribute("xTitle");
%>
<anychart>  
<settings>
  <animation enabled="<%=animation %>" /> 
 </settings> 
 <charts>  
	<chart plot_type="Pie">  
      <data><%=data %> 
      </data> 
      <chart_settings>
				<title enabled="<%=title_enabled%>"> 
					<font  size="<%=title_font_size %>">
						<effects> 
								<drop_shadow enabled="true" distance="2" opacity="0.5" blur_x="2" blur_y="2"></drop_shadow>
							</effects>
					</font>
					<text><%=title %> </text>
				</title>
				<chart_background enabled="false"> 
					<border enabled="true">
						<fill enabled="false" />
					</border>
				</chart_background>
				
	<legend enabled='<%=legend_enabled%>' position='<%= legend_position%>' ignore_auto_item="true" align_by='Chart' rows_padding='0' align='<%=legend_align%>'>
  				<format>{%Icon} {%Name} {%duration}</format>
 				<template></template>
 				<title enabled="True">
	 				<text><fmt:message key="template.legendTitle" /></text>
					<font size="18" bold="false"  family="黑体" /> 
	 				<background enabled="True">
					<border enabled="false" />
	 				</background> 
				</title>
 				<title_separator enabled="false" /> 
 				<background enabled="true" /> 
 				<items>
					<item source="Series"/> 
				</items> 
 				</legend> 
			</chart_settings>
    </chart>  
  </charts>  
</anychart> 